package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购单对象 jt_purchase_order
 * 
 * @author Alan Zhang
 * @date 2025-03-29
 */
public class JtPurchaseOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购单id */
    private Long purchaseId;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    @Excel(name = "仓库")
    private String warehouseName;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long supplierId;

    @Excel(name = "供应商")
    private String supplierName;

    /** 采购单号 */
    @Excel(name = "采购单号")
    private String orderNo;

    /** 商品属性 */
    @Excel(name = "商品属性", dictType = "jt_product_attributes")
    private Integer attributes;

    /** 物流公司 */
    @Excel(name = "物流公司")
    private String logisticsCompany;

    /** 物流单号 */
    @Excel(name = "物流单号")
    private String logisticsNumber;

    /** 采购总数量 */
    @Excel(name = "采购总数量")
    private Long totalQty;

    /** 采购总金额 */
    @Excel(name = "采购总金额")
    private BigDecimal totalAmount;

    /** 采购员 */
    @Excel(name = "采购员")
    private String purchaser;

    /** 采购日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    /** 预计到货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "预计到货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expectedArrivalDate;

    /** 采购单状态 0 待审核 1已确认 2已入库 3已完成 4已取消 */
    @Excel(name = "采购单状态", dictType = "jt_purchase_status")
    private Integer status;

    /** 审核人 */
    @Excel(name = "审核人")
    private String reviewer;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reviewTime;

    /** 收件人 */
    @Excel(name = "收件人")
    private String receiver;

    /** 收件人手机 */
    @Excel(name = "收件人手机")
    private String phoneNumber;

    /** 国家 */
    @Excel(name = "国家")
    private String country;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区 */
    @Excel(name = "区")
    private String district;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String fullAddress;

    /** 采购单明细信息 */
    private List<JtPurchaseOrderItem> jtPurchaseOrderItemList;

    public void setPurchaseId(Long purchaseId) 
    {
        this.purchaseId = purchaseId;
    }

    public Long getPurchaseId() 
    {
        return purchaseId;
    }

    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }

    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public Integer getAttributes() {
        return attributes;
    }

    public void setAttributes(Integer attributes) {
        this.attributes = attributes;
    }

    public void setLogisticsCompany(String logisticsCompany)
    {
        this.logisticsCompany = logisticsCompany;
    }

    public String getLogisticsCompany() 
    {
        return logisticsCompany;
    }

    public void setLogisticsNumber(String logisticsNumber) 
    {
        this.logisticsNumber = logisticsNumber;
    }

    public String getLogisticsNumber() 
    {
        return logisticsNumber;
    }

    public void setTotalQty(Long totalQty) 
    {
        this.totalQty = totalQty;
    }

    public Long getTotalQty() 
    {
        return totalQty;
    }

    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }

    public void setPurchaser(String purchaser) 
    {
        this.purchaser = purchaser;
    }

    public String getPurchaser() 
    {
        return purchaser;
    }

    public void setPurchaseDate(Date purchaseDate) 
    {
        this.purchaseDate = purchaseDate;
    }

    public Date getPurchaseDate() 
    {
        return purchaseDate;
    }

    public void setExpectedArrivalDate(Date expectedArrivalDate) 
    {
        this.expectedArrivalDate = expectedArrivalDate;
    }

    public Date getExpectedArrivalDate() 
    {
        return expectedArrivalDate;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setReviewer(String reviewer) 
    {
        this.reviewer = reviewer;
    }

    public String getReviewer() 
    {
        return reviewer;
    }

    public void setReviewTime(Date reviewTime) 
    {
        this.reviewTime = reviewTime;
    }

    public Date getReviewTime() 
    {
        return reviewTime;
    }

    public void setReceiver(String receiver) 
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }

    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }

    public void setCountry(String country) 
    {
        this.country = country;
    }

    public String getCountry() 
    {
        return country;
    }

    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }

    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }

    public void setDistrict(String district) 
    {
        this.district = district;
    }

    public String getDistrict() 
    {
        return district;
    }

    public void setFullAddress(String fullAddress) 
    {
        this.fullAddress = fullAddress;
    }

    public String getFullAddress() 
    {
        return fullAddress;
    }

    public List<JtPurchaseOrderItem> getJtPurchaseOrderItemList()
    {
        return jtPurchaseOrderItemList;
    }

    public void setJtPurchaseOrderItemList(List<JtPurchaseOrderItem> jtPurchaseOrderItemList)
    {
        this.jtPurchaseOrderItemList = jtPurchaseOrderItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseId", getPurchaseId())
            .append("warehouseId", getWarehouseId())
            .append("supplierId", getSupplierId())
            .append("orderNo", getOrderNo())
            .append("logisticsCompany", getLogisticsCompany())
            .append("logisticsNumber", getLogisticsNumber())
            .append("totalQty", getTotalQty())
            .append("totalAmount", getTotalAmount())
            .append("purchaser", getPurchaser())
            .append("purchaseDate", getPurchaseDate())
            .append("expectedArrivalDate", getExpectedArrivalDate())
            .append("status", getStatus())
            .append("reviewer", getReviewer())
            .append("reviewTime", getReviewTime())
            .append("receiver", getReceiver())
            .append("phoneNumber", getPhoneNumber())
            .append("country", getCountry())
            .append("province", getProvince())
            .append("city", getCity())
            .append("district", getDistrict())
            .append("fullAddress", getFullAddress())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("jtPurchaseOrderItemList", getJtPurchaseOrderItemList())
            .toString();
    }
}
